﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using GtsServer.Service.Model;
using System.Web;
using System.ServiceModel.Activation;
using GtsServer.Service.Model.Response;
using GtsServer.Service.Model.Request;
using GtsServer.Common;
using GtsServer.Service.Controller;

namespace GtsServer.Service.IISWcfService
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码、svc 和配置文件中的类名“TestService”。
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]
    public class TestService : ITestService
    {
        #region test

        //public BaseResponse<PrizeListResponse> GetPrizeList()
        //{
        //    string input = HttpContext.Current.Request.QueryString.ToString();
        //    PrizeListResponse response = new PrizeListResponse();
        //    try
        //    {
        //        PrizeRequest request = new PrizeRequest();
        //        request.Init(input);
        //        PrizeBLL testBll = new PrizeBLL();
        //        response = testBll.GetPrizeList(request);
        //    }
        //    catch (Exception ex)
        //    {
        //        LogHelper.WriteLog("类TestService方法GetPrizeList异常：", ex);
        //    }

        //    BaseResponse<PrizeListResponse> baseResponse = new BaseResponse<PrizeListResponse>();
        //    baseResponse.Body = response;
        //    baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    baseResponse.Command = "GetPrizeList";
        //    baseResponse.Result = "0";
        //    return baseResponse;
        //}

        //public BaseResponse<PrizeListResponse> GetPrizeListPost(System.IO.Stream input)
        //{
        //    PrizeListResponse response = new PrizeListResponse();
        //    try
        //    {
        //        PrizeRequest request = new PrizeRequest();
        //        request.Init(input);
        //        PrizeBLL testBll = new PrizeBLL();
        //        response = testBll.GetPrizeList(request); ;
        //    }
        //    catch (Exception ex)
        //    {
        //        LogHelper.WriteLog("类TestService方法GetPrizeListPost异常：", ex);
        //    }

        //    BaseResponse<PrizeListResponse> baseResponse = new BaseResponse<PrizeListResponse>();
        //    baseResponse.Body = response;
        //    baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    baseResponse.Command = "GetPrizeListPost";
        //    baseResponse.Result = "0";
        //    return baseResponse;
        //}

        //public BaseResponse<PrizeManageResponse> GetPrizeManageList()
        //{
        //    string input = HttpContext.Current.Request.QueryString.ToString();
        //    PrizeManageResponse response = new PrizeManageResponse();
        //    try
        //    {
        //        PrizeRequest request = new PrizeRequest();
        //        request.Init(input);
        //        PrizeBLL testBll = new PrizeBLL();
        //        response = testBll.GetPrizeManageList(request);
        //    }
        //    catch (Exception ex)
        //    {
        //        LogHelper.WriteLog("类TestService方法GetPrizeManageList异常：", ex);
        //    }
        //    BaseResponse<PrizeManageResponse> baseResponse = new BaseResponse<PrizeManageResponse>();
        //    baseResponse.Body = response;
        //    baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    baseResponse.Command = "GetPrizeManageList";
        //    baseResponse.Result = "0";
        //    return baseResponse;
        //}

        //public BaseResponse<PrizeManageResponse> GetPrizeManageListPost(System.IO.Stream input)
        //{
        //    PrizeManageResponse response = new PrizeManageResponse();
        //    try
        //    {
        //        PrizeRequest request = new PrizeRequest();
        //        request.Init(input);
        //        PrizeBLL addressManage = new PrizeBLL();
        //        response = addressManage.GetPrizeManageList(request);
        //    }
        //    catch (Exception ex)
        //    {
        //        LogHelper.WriteLog("类TestService方法GetPrizeManageListPost异常：", ex);
        //    }
        //    BaseResponse<PrizeManageResponse> baseResponse = new BaseResponse<PrizeManageResponse>();
        //    baseResponse.Body = response;
        //    baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    baseResponse.Command = "AddPostTest";
        //    baseResponse.Result = "0";
        //    return baseResponse;
        //}

        //public BaseResponse<PrizeDetailResponse> GetPrizeDetail()
        //{
        //    string input = HttpContext.Current.Request.QueryString.ToString();
        //    PrizeDetailResponse response = new PrizeDetailResponse();
        //    try
        //    {
        //        PrizeRequest request = new PrizeRequest();
        //        request.Init(input);
        //        PrizeBLL testBll = new PrizeBLL();
        //        response = testBll.GetPrizeDetail(request);
        //    }
        //    catch (Exception ex)
        //    {
        //        LogHelper.WriteLog("类TestService方法GetPrizeDetail异常：", ex);
        //    }
        //    BaseResponse<PrizeDetailResponse> baseResponse = new BaseResponse<PrizeDetailResponse>();
        //    baseResponse.Body = response;
        //    baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    baseResponse.Command = "GetPrizeDetail";
        //    baseResponse.Result = "0";
        //    // LogHelper.WriteLog(response.ToString());
        //    return baseResponse;
        //}

        //public BaseResponse<PrizeDetailResponse> GetPrizeDetailPost(System.IO.Stream input)
        //{
        //    PrizeDetailResponse response = new PrizeDetailResponse();
        //    try
        //    {
        //        PrizeRequest request = new PrizeRequest();
        //        request.Init(input);
        //        PrizeBLL testBll = new PrizeBLL();
        //        response = testBll.GetPrizeDetail(request);
        //    }
        //    catch (Exception ex)
        //    {
        //        LogHelper.WriteLog("类TestService方法GetPrizeDetailPost异常：", ex);
        //    }
        //    BaseResponse<PrizeDetailResponse> baseResponse = new BaseResponse<PrizeDetailResponse>();
        //    baseResponse.Body = response;
        //    baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    baseResponse.Command = "GetPrizeDetailPost";
        //    baseResponse.Result = "0";
        //    // LogHelper.WriteLog(response.ToString());
        //    return baseResponse;
        //}

        //public BaseResponse<PrizeRecordResponse> GetPrizeRecord()
        //{
        //    string input = HttpContext.Current.Request.QueryString.ToString();
        //    PrizeRecordResponse response = new PrizeRecordResponse();
        //    try
        //    {
        //        PrizeRequest request = new PrizeRequest();
        //        request.Init(input);
        //        PrizeBLL testBll = new PrizeBLL();
        //        response = testBll.GetPrizeRecord(request);
        //    }
        //    catch (Exception ex)
        //    {
        //        LogHelper.WriteLog("类TestService方法GetPrizeRecord异常：", ex);
        //    }
        //    BaseResponse<PrizeRecordResponse> baseResponse = new BaseResponse<PrizeRecordResponse>();
        //    baseResponse.Body = response;
        //    baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    baseResponse.Command = "GetPrizeRecord";
        //    baseResponse.Result = "0";
        //    return baseResponse;
        //}

        //public BaseResponse<PrizeRecordResponse> GetPrizeRecordPost(System.IO.Stream input)
        //{
        //    PrizeRecordResponse response = new PrizeRecordResponse();
        //    try
        //    {
        //        PrizeRequest request = new PrizeRequest();
        //        request.Init(input);
        //        PrizeBLL testBll = new PrizeBLL();
        //        response = testBll.GetPrizeRecord(request);
        //    }
        //    catch (Exception ex)
        //    {
        //        LogHelper.WriteLog("类TestService方法GetPrizeRecordPost异常：", ex);
        //    }
        //    BaseResponse<PrizeRecordResponse> baseResponse = new BaseResponse<PrizeRecordResponse>();
        //    baseResponse.Body = response;
        //    baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        //    baseResponse.Command = "GetPrizeRecordPost";
        //    baseResponse.Result = "0";
        //    return baseResponse;
        //}
        #endregion

        #region 获取概率
        public BaseResponse<ChanceResponse> GetChance(System.IO.Stream input)
        {
            ChanceResponse response = new ChanceResponse();
            ChanceRequest request = new ChanceRequest();
            try
            {
                request = request.Init(input);
                ChanceController controller = new ChanceController();

                response = controller.GetChance();
                //LogController<ChanceRequest, ChanceResponse>.AddLog(request, response, "GetChance");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("方法GetChance解析错误：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }
            BaseResponse<ChanceResponse> baseResponse = new BaseResponse<ChanceResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetChance";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region logo获取版本及公告
        public BaseResponse<VersionResponse> GetVersionAndNotice(System.IO.Stream input)
        {
            VersionResponse response = new VersionResponse();
            VersionRequest request = new VersionRequest();
            try
            {
                request = request.Init(input);
                int goldNum = 0;
                string userAccount = string.Empty;
                VersionController controller = new VersionController(request.info, out goldNum, out userAccount);

                response = controller.GetVersion(goldNum, userAccount);

                //更改用户最后访问时间
                //UserController userController = new UserController();
                //userController.UpdateRequestTime(request.info.sim.imsi + request.info.phone.mac);
                LogController<VersionRequest, VersionResponse>.AddLog(request, response, "GetVersionAndNotice");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("方法GetVersionAndNotice解析错误：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }
            BaseResponse<VersionResponse> baseResponse = new BaseResponse<VersionResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetVersionAndNotice";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 获取彩蛋任务
        public BaseResponse<CaidanTaskResponse> GetCaidanTask(System.IO.Stream input)
        {
            CaidanTaskResponse response = new CaidanTaskResponse();
            CaidanTaskRequest request = new CaidanTaskRequest();
            try
            {
                request = request.Init(input);
                CaidanTaskController controller = new CaidanTaskController();

                response = controller.GetCaidanTask(request);
                LogController<CaidanTaskRequest, CaidanTaskResponse>.AddLog(request, response, "GetCaidanTask");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("方法GetCaidanTask解析错误：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }
            BaseResponse<CaidanTaskResponse> baseResponse = new BaseResponse<CaidanTaskResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetCaidanTask";
            baseResponse.Result = "0";
            return baseResponse;
        }

        public BaseResponse<ReceiveCaidanResponse> ReceiveCaidanTask(System.IO.Stream input)
        {
            ReceiveCaidanResponse response = new ReceiveCaidanResponse();
            ReceiveCaidanRequest request = new ReceiveCaidanRequest();
            try
            {
                request = request.Init(input);
                ReceiveCaidanController controller = new ReceiveCaidanController(request);

                response = controller.ReceiveCaidan();
                LogController<ReceiveCaidanRequest, ReceiveCaidanResponse>.AddLog(request, response, "ReceiveCaidanTask");

            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("方法ReceiveCaidanTask解析错误：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }
            BaseResponse<ReceiveCaidanResponse> baseResponse = new BaseResponse<ReceiveCaidanResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "ReceiveCaidanTask";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 奖品
        /// <summary>
        /// 奖品列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<PrizeListResponse> GetPrizeList(System.IO.Stream input)
        {
            PrizeListResponse response = new PrizeListResponse();
            PrizeListRequest request = new PrizeListRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();

                response = controller.GetPrizeList(request);
                //LogController<PrizeListRequest, PrizeListResponse>.AddLog(request, response, "GetPrizeList");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetPrizeList异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<PrizeListResponse> baseResponse = new BaseResponse<PrizeListResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetPrizeList";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 我的奖品列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<MyPrizeListResponse> GetMyPrizeList(System.IO.Stream input)
        {
            MyPrizeListResponse response = new MyPrizeListResponse();
            PrizeListRequest request = new PrizeListRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();

                response = controller.GetMyPrizeList(request);
                LogController<PrizeListRequest, MyPrizeListResponse>.AddLog(request, response, "GetMyPrizeList");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetMyPrizeList异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<MyPrizeListResponse> baseResponse = new BaseResponse<MyPrizeListResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetMyPrizeList";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 奖品详情
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<PrizeDetailResponse> GetPrizeDetail(System.IO.Stream input)
        {
            PrizeDetailResponse response = new PrizeDetailResponse();
            PrizeDetailRequest request = new PrizeDetailRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();

                response = controller.GetPrizeDetail(request);
                //LogController<PrizeDetailRequest, PrizeDetailResponse>.AddLog(request, response, "GetPrizeDetail");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetPrizeDetail异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<PrizeDetailResponse> baseResponse = new BaseResponse<PrizeDetailResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetPrizeDetail";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 兑换奖品
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<ExchangePrizeResponse> ExchangePrize(System.IO.Stream input)
        {
            ExchangePrizeResponse response = new ExchangePrizeResponse();
            ExchangePrizeRequest request = new ExchangePrizeRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();

                response = controller.ExchangePrize(request);
                //LogController<ExchangePrizeRequest, ExchangePrizeResponse>.AddLog(request, response, "ExchangePrize");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法ExchangePrize异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<ExchangePrizeResponse> baseResponse = new BaseResponse<ExchangePrizeResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "ExchangePrize";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 兑换奖品记录详情
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<PrizeRecordDetialResponse> ExchangePrizeDetail(System.IO.Stream input)
        {
            PrizeRecordDetialResponse response = new PrizeRecordDetialResponse();
            PrizeRecordDetailRequest request = new PrizeRecordDetailRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();

                response = controller.ExchangePrizeDetail(request);
                //LogController<PrizeRecordDetailRequest, PrizeRecordDetialResponse>.AddLog(request, response, "ExchangePrizeDetail");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法ExchangePrizeDetail异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<PrizeRecordDetialResponse> baseResponse = new BaseResponse<PrizeRecordDetialResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "ExchangePrizeDetail";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 用户
        /// <summary>
        /// 用户注册
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<UserRegisterResponse> UserRegister(System.IO.Stream input)
        {
            UserRegisterResponse response = new UserRegisterResponse();
            UserRegisterRequest request = new UserRegisterRequest();
            try
            {
                request = request.Init(input);
                UserController controller = new UserController();
                response = controller.UserRegister(request);
                //LogController<UserRegisterRequest, UserRegisterResponse>.AddLog(request, response, "UserRegister");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法UserRegister异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<UserRegisterResponse> baseResponse = new BaseResponse<UserRegisterResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "UserRegister";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<UserLoginResponse> UserLogin(System.IO.Stream input)
        {
            UserLoginResponse response = new UserLoginResponse();
            UserRegisterRequest request = new UserRegisterRequest();
            try
            {
                request = request.Init(input);
                UserController controller = new UserController();
                response = controller.UserLogin(request);
                //LogController<UserRegisterRequest, UserLoginResponse>.AddLog(request, response, "UserLogin");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法UserLogin异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<UserLoginResponse> baseResponse = new BaseResponse<UserLoginResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "UserLogin";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 计费
        /// <summary>
        /// 支付宝
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<ChargeZfbResponse> ChargeZfb(System.IO.Stream input)
        {
            ChargeZfbResponse response = new ChargeZfbResponse();
            ChargeZfbRequest request = new ChargeZfbRequest();
            try
            {
                request = request.Init(input);
                ChargeController controller = new ChargeController();
                response = controller.ChargeZfb(request);
                //LogController<ChargeZfbRequest, ChargeZfbResponse>.AddLog(request, response, "ChargeZfb");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法ChargeZfb异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<ChargeZfbResponse> baseResponse = new BaseResponse<ChargeZfbResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "ChargeZfb";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 神州付
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<ChargeSzfResponse> ChargeSzf(System.IO.Stream input)
        {
            ChargeSzfResponse response = new ChargeSzfResponse();
            ChargingSzfRequest request = new ChargingSzfRequest();
            try
            {
                request = request.Init(input);
                ChargeController controller = new ChargeController();
                response = controller.ChargeSzf(request);
                //LogController<ChargingSzfRequest, ChargeSzfResponse>.AddLog(request, response, "ChargeSzf");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法ChargeSzf异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<ChargeSzfResponse> baseResponse = new BaseResponse<ChargeSzfResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "ChargeSzf";
            baseResponse.Result = "0";
            return baseResponse;
        }


        /// <summary>
        /// 公用计费服务器 调用的接口
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public void Charge(System.IO.Stream input)
        {
            ChargeCommonRequest request = new ChargeCommonRequest();
            try
            {
                request = request.Init(input);
                ChargeController controller = new ChargeController();
                controller.ChargeCommon(request);
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法Charge异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }
        }
        #endregion

        #region 比赛
        public BaseResponse<MatchListResponse> GetMatchList(System.IO.Stream input)
        {
            MatchListResponse response = new MatchListResponse();
            MatchListRequest request = new MatchListRequest();
            try
            {
                request = request.Init(input);
                MatchController controller = new MatchController();
                response = controller.GetMatchList(request);
                //LogController<MatchListRequest, MatchListResponse>.AddLog(request, response, "GetMatchList");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetMatchList异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<MatchListResponse> baseResponse = new BaseResponse<MatchListResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetMatchList";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 比赛排行
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<MatchRankResponse> GetMatchRank(System.IO.Stream input)
        {
            MatchRankResponse response = new MatchRankResponse();
            MatchRankRequset request = new MatchRankRequset();
            try
            {
                request = request.Init(input);
                MatchController controller = new MatchController();
                response = controller.GetMatchRankList(request);
                //LogController<MatchRankRequset, MatchRankResponse>.AddLog(request, response, "GetMatchRank");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetMatchRank异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<MatchRankResponse> baseResponse = new BaseResponse<MatchRankResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetMatchRank";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 游戏主体
        /// <summary>
        /// 经典模式
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<GameMainResponse> GetGameMain(System.IO.Stream input)
        {
            GameMainResponse response = new GameMainResponse();
            GameMainRequest request = new GameMainRequest();
            try
            {
                request = request.Init(input);
                GameMainController controller = new GameMainController();
                response = controller.GetGameMain(request);
                LogController<GameMainRequest, GameMainResponse>.AddLog(request, response, "GetGameMain");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetGameMain异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<GameMainResponse> baseResponse = new BaseResponse<GameMainResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetGameMain";
            baseResponse.Result = "0";
            return baseResponse;
        }


        /// <summary>
        /// 比赛模式
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<GameMainResponse> GetGameTaskMatch(System.IO.Stream input)
        {
            GameMainResponse response = new GameMainResponse();
            GameMatchRequest request = new GameMatchRequest();
            try
            {
                request = request.Init(input);
                GameMainController controller = new GameMainController();
                response = controller.GetGameTaskMatch(request);
                LogController<GameMatchRequest, GameMainResponse>.AddLog(request, response, "GetGameTaskMatch");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetGameTaskMatch异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<GameMainResponse> baseResponse = new BaseResponse<GameMainResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetGameTaskMatch";
            baseResponse.Result = "0";
            return baseResponse;
        }

        #endregion

        #region 物品
        /// <summary>
        /// 获取物品列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<GoodsListResponse> GetGoodsList(System.IO.Stream input)
        {

            GoodsListResponse response = new GoodsListResponse();
            GoodsListRequest request = new GoodsListRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();
                response = controller.GetGoodsList(request);
                //LogController<GoodsListRequest, GoodsListResponse>.AddLog(request, response, "GetGoodsList");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetGoodsList异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<GoodsListResponse> baseResponse = new BaseResponse<GoodsListResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetGoodsList";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 认领物品列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<ClaimGoodsListResponse> GetClaimGoodsList(System.IO.Stream input)
        {
            ClaimGoodsListResponse response = new ClaimGoodsListResponse();
            ClaimGoodsListRequest request = new ClaimGoodsListRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();
                response = controller.GetClaimGoodsList(request);
                LogController<ClaimGoodsListRequest, ClaimGoodsListResponse>.AddLog(request, response, "GetClaimGoodsList");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetClaimGoodsList异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<ClaimGoodsListResponse> baseResponse = new BaseResponse<ClaimGoodsListResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetClaimGoodsList";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 获取我的物品列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<MyGoodsListResponse> GetMyGoodsList(System.IO.Stream input)
        {
            MyGoodsListResponse response = new MyGoodsListResponse();
            MyGoodsListRequest request = new MyGoodsListRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();
                response = controller.GetMyGoodsList(request);
                LogController<MyGoodsListRequest, MyGoodsListResponse>.AddLog(request, response, "GetMyGoodsList");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetMyGoodsList异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<MyGoodsListResponse> baseResponse = new BaseResponse<MyGoodsListResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetMyGoodsList";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 领取或丢弃物品
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<EditGoodsStutasResponse> EditGoodsStutas(System.IO.Stream input)
        {
            EditGoodsStutasResponse response = new EditGoodsStutasResponse();
            EditGoodsStutasRequest request = new EditGoodsStutasRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();
                response = controller.EditGoodsStutas(request);
                //LogController<EditGoodsStutasRequest, EditGoodsStutasResponse>.AddLog(request, response, "EditGoodsStutas");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法EditGoodsStutas异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<EditGoodsStutasResponse> baseResponse = new BaseResponse<EditGoodsStutasResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "EditGoodsStutas";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 获取商城中的金币界面列表
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<PrizeGoldResponse> GetShopGoodsList(System.IO.Stream input)
        {
            PrizeGoldResponse response = new PrizeGoldResponse();
            PrizeGoldRequest request = new PrizeGoldRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();
                response = controller.GetShopGoodsList(request);
                //LogController<PrizeGoldRequest, PrizeGoldResponse>.AddLog(request, response, "GetShopGoodsList");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetShopGoodsList异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<PrizeGoldResponse> baseResponse = new BaseResponse<PrizeGoldResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetShopGoodsList";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 购买物品
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<BuyGoodsResponse> BuyGoods(System.IO.Stream input)
        {
            BuyGoodsResponse response = new BuyGoodsResponse();
            BuyGoodsRequest request = new BuyGoodsRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();
                response = controller.BuyGoods(request);
                //LogController<BuyGoodsRequest, BuyGoodsResponse>.AddLog(request, response, "BuyGoods");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetShopGoodsList异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<BuyGoodsResponse> baseResponse = new BaseResponse<BuyGoodsResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetShopGoodsList";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 通知领取物品
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<NoticeClaimGoodsResponse> NoticeClaimGoods(System.IO.Stream input)
        {
            NoticeClaimGoodsResponse response = new NoticeClaimGoodsResponse();
            NoticeClaimGoodsRequest request = new NoticeClaimGoodsRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();
                response = controller.NoticeClaimGoods(request);
                //LogController<NoticeClaimGoodsRequest, NoticeClaimGoodsResponse>.AddLog(request, response, "NoticeClaimGoods");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法NoticeClaimGoods异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<NoticeClaimGoodsResponse> baseResponse = new BaseResponse<NoticeClaimGoodsResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "NoticeClaimGoods";
            baseResponse.Result = "0";
            return baseResponse;
        }


        /// <summary>
        /// 使用道具
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<UseStageResponse> UseStage(System.IO.Stream input)
        {
            UseStageResponse response = new UseStageResponse();
            UseStageRequest request = new UseStageRequest();
            try
            {
                request = request.Init(input);
                PrizeController controller = new PrizeController();
                response = controller.UseStage(request);
                //LogController<UseStageRequest, UseStageResponse>.AddLog(request, response, "UseStage");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法UseStage异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<UseStageResponse> baseResponse = new BaseResponse<UseStageResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "UseStage";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 消息推送
        /// <summary>
        /// 消息推送
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<NewDeliveryResponse> GetNewDelivery(System.IO.Stream input)
        {
            NewDeliveryResponse response = new NewDeliveryResponse();
            NewDeloveryRequest request = new NewDeloveryRequest();
            try
            {
                request = request.Init(input);
                int goldNum = 0;
                string userAccount = string.Empty;
                NewDeliveryController controller = new NewDeliveryController(request.info, out goldNum, out userAccount);

                response = controller.GetNewDelivery(request, userAccount);

                //request = request.Init(input);
                //NewDeliveryController controller = new NewDeliveryController();
                //response = controller.GetNewDelivery(request);
                //LogController<NewDeloveryRequest, NewDeliveryResponse>.AddLog(request, response, "GetNewDelivery");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法GetNewDelivery异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<NewDeliveryResponse> baseResponse = new BaseResponse<NewDeliveryResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "GetNewDelivery";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 彩池模式
        /// <summary>
        /// 彩池模式开始游戏（短连接）
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<LotteryPoolResponse> LotteryPool(System.IO.Stream input)
        {
            LotteryPoolResponse response = new LotteryPoolResponse();
            LotteryPoolRequest request = new LotteryPoolRequest();
            try
            {
                request = request.Init(input);
                LotteryPoolController controller = new LotteryPoolController();
                response = controller.EditLotteryPool(request);
                LogController<LotteryPoolRequest, LotteryPoolResponse>.AddLog(request, response, "LotteryPool");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法LotteryPool异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<LotteryPoolResponse> baseResponse = new BaseResponse<LotteryPoolResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "LotteryPool";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 进入彩池模式（短连接）
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<LotteryPoolResponse> LotteryPoolInit(System.IO.Stream input)
        {
            LotteryPoolResponse response = new LotteryPoolResponse();
            LotteryPoolInitRequest request = new LotteryPoolInitRequest();
            try
            {
                request = request.Init(input);
                LotteryPoolController controller = new LotteryPoolController();
                response = controller.LotteryPoolInit(request);
                LogController<LotteryPoolInitRequest, LotteryPoolResponse>.AddLog(request, response, "LotteryPoolInit");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法LotteryPoolInit异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<LotteryPoolResponse> baseResponse = new BaseResponse<LotteryPoolResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "LotteryPoolInit";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 彩池模式 猜大小（短连接）
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<LotteryPoolSizeResponse> LotteryPoolGuess(System.IO.Stream input)
        {
            LotteryPoolSizeResponse response = new LotteryPoolSizeResponse();
            LotteryPoolSizeRequest request = new LotteryPoolSizeRequest();
            try
            {
                request = request.Init(input);
                LotteryPoolController controller = new LotteryPoolController();
                response = controller.LotteryPoolGuess(request);
                LogController<LotteryPoolSizeRequest, LotteryPoolSizeResponse>.AddLog(request, response, "LotteryPoolGuess");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法LotteryPoolGuess异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<LotteryPoolSizeResponse> baseResponse = new BaseResponse<LotteryPoolSizeResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "LotteryPoolGuess";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 彩池模式 根据彩蛋排名(总排名)（短连接）
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<MatchRankResponse> LotteryPoolRank(System.IO.Stream input)
        {
            MatchRankResponse response = new MatchRankResponse();
            LotteryPoolRankRequest request = new LotteryPoolRankRequest();
            try
            {
                request = request.Init(input);
                LotteryPoolController controller = new LotteryPoolController();
                response = controller.LotteryPoolRank(request);
                //LogController<LotteryPoolRankRequest, MatchRankResponse>.AddLog(request, response, "LotteryPoolRank");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法LotteryPoolGuess异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<MatchRankResponse> baseResponse = new BaseResponse<MatchRankResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "LotteryPoolGuess";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 用户反馈
        /// <summary>
        /// 用户反馈
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<FeedBackResponse> FeedBack(System.IO.Stream input)
        {
            FeedBackResponse response = new FeedBackResponse();
            FeedBackRequest request = new FeedBackRequest();
            try
            {
                request = request.Init(input);
                FeedBackController controller = new FeedBackController();
                response = controller.AddFeedback(request);
                //LogController<FeedBackRequest, FeedBackResponse>.AddLog(request, response, "FeedBack");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法FeedBack异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<FeedBackResponse> baseResponse = new BaseResponse<FeedBackResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "FeedBack";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 充值记录
        /// <summary>
        /// 充值记录
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<RechargeRecordResponse> RechargeRecord(System.IO.Stream input)
        {
            RechargeRecordResponse response = new RechargeRecordResponse();
            RechargeRecordRequest request = new RechargeRecordRequest();
            try
            {
                request = request.Init(input);
                RechargeRecordController controller = new RechargeRecordController();
                response = controller.RechargeRecord(request);
                //LogController<RechargeRecordRequest, RechargeRecordResponse>.AddLog(request, response, "RechargeRecord");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法RechargeRecord异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<RechargeRecordResponse> baseResponse = new BaseResponse<RechargeRecordResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "RechargeRecord";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion

        #region 用户推荐
        /// <summary>
        /// 推荐信息
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<InviteMsgResponse> InviteMsg(System.IO.Stream input)
        {
            InviteMsgResponse response = new InviteMsgResponse();
            InviteMsgRequest request = new InviteMsgRequest();
            try
            {
                request = request.Init(input);
                InviteController controller = new InviteController();
                response = controller.InviteMsg(request);
                //LogController<FeedBackRequest, FeedBackResponse>.AddLog(request, response, "FeedBack");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法InviteMsg异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<InviteMsgResponse> baseResponse = new BaseResponse<InviteMsgResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "InviteMsg";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 验证推荐码
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<InviteVerifReponse> InviteVerif(System.IO.Stream input)
        {
            InviteVerifReponse response = new InviteVerifReponse();
            InviteVerifRequest request = new InviteVerifRequest();
            try
            {
                request = request.Init(input);
                InviteController controller = new InviteController();
                response = controller.InviteVerif(request);
                //LogController<FeedBackRequest, FeedBackResponse>.AddLog(request, response, "FeedBack");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法InviteVerif异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<InviteVerifReponse> baseResponse = new BaseResponse<InviteVerifReponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "InviteVerif";
            baseResponse.Result = "0";
            return baseResponse;
        }

        /// <summary>
        /// 推荐提取金币
        /// </summary>
        /// <param name="input"></param>
        /// <returns></returns>
        public BaseResponse<InviteGetCoinResponse> InviteGetCoin(System.IO.Stream input)
        {
            InviteGetCoinResponse response = new InviteGetCoinResponse();
            InviteGetCoinRequest request = new InviteGetCoinRequest();
            try
            {
                request = request.Init(input);
                InviteController controller = new InviteController();
                response = controller.InviteGetCoin(request);
                //LogController<FeedBackRequest, FeedBackResponse>.AddLog(request, response, "FeedBack");
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog("类TestService方法InviteGetCoin异常：", ex);
                LogHelper.WriteLog(JsonHelper.ToJson(request));
            }

            BaseResponse<InviteGetCoinResponse> baseResponse = new BaseResponse<InviteGetCoinResponse>();
            baseResponse.Body = response;
            baseResponse.ClientTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            baseResponse.Command = "InviteGetCoin";
            baseResponse.Result = "0";
            return baseResponse;
        }
        #endregion


    }
}
